<template>
	<view class="settlement">
		<result-page :type="2" :title="'支付成功'"
		:btnText="'查看订单'" @goPage="viewOrder"></result-page>
		<tui-modal></tui-modal>
	</view>
</template>
<script>
	import resultPage from '@/components/resultPage/resultPage.vue';
export default {
	components: {
		resultPage,
	},
	data() {
		return {
			from:'',
			pageName:'',
		};
	},
	onLoad(options) {
		console.log(options)
		// #ifdef H5
		   this.$wechat.noShare();
		// #endif
		this.from=options.from;
		this.id=options.id;
		if(options&&options.pageName){
			this.pageName=options.pageName
		}
	},
	methods: {
		viewOrder(){
			uni.redirectTo({
				url: `/packageD/pages/pointsOrder/pointsOrder?from=${this.from}`
			});
		},
	}
};
</script>

<style lang="scss">
</style>
